import request from "./request.js"
// 最新7.0 的接口
// banner
export function imagesCarousel(params) {
	return request("/api/imagesCarousel/list", "GET", params)
}
// 获取所有审核通过的同城信息
export function allApprovedList(params) {
	return request("/api/information/allApprovedList", "GET", params)
}
// 获取验证码
export function sendSms(params) {
	return request("/api/member/sendSms", "POST", params)
}
// 获取所有审核通过的同城信息
export function getShopOfGoodsList(params) {
	return request("/api/order/getShopOfGoodsList", "GET", params)
}
// 获取用户的手机型号等
export function miniAppViewSave(params) {
	return request("/api/order/miniAppViewSave", "POST", params)
}
// 获取商品的二维码
export function getGoodsWxCode(params) {
	return request("/api/wx/getGoodsWxCode", "GET", params)
}
// 确认收货
export function confirmGoodsTake(params) {
	console.log(params);
	return request("/api/order/confirmGoodsTake/" + params, "GET", params)
}
// 获取同城信息的二级分类
export function loadTreeData(params) {
	return request("/sys/category/loadTreeData", "GET", params)
}
// 上传图片
export function uploadImg(params) {
	return request("/sys/common/upload", "POST", params)
}
// 周边服务类型店铺
export function shopsurrounding(params) {
	return request("/api/shop/surrounding", "GET", params)
}
// 获取商家下的服务列表
export function fuwulistsum(params) {
	return request("/api/serve/list", "GET", params)
}
// 服务信息移动端API-周边服务   按类型查询
export function surrounding(params) {
	return request("/api/serve/surrounding", "GET", params)
}
// 获取服务店铺的详情
export function fuwushopinfo(params) {
	return request("/api/shop/info", "GET", params)
}
//微信
// 根据code 获取用户信息  获取不到  去注册
export function newgetOpenId(params) {
	return request("/api/member/getOpenId", "POST", params)
}
//微信
// 根据code 获取用户信息  获取不到  去注册
export function getUserByOpenId(params) {
	return request("/api/member/getUserByOpenId", "GET", params)
}
export function getOpenId(params) {
	return request("/api/member/bdLogin", "POST", params)
}
// 解密
export function ttnewget(params) {
	return request("/tiktot/decrypt/userInfo", "POST", params)
}
// 微信用户注册
export function rigrstlogin(params) {
	return request("/api/member/login", "POST", params)
}
// 信息发布移动端API-添加到待审核
export function addReview(params) {
	return request("/api/information/addReview", "POST", params)
}
// // 首页一级频道
// export function channelList(params) {
// 	return request("/api/kategorie/getAllKategorie", "GET", params)
// }
// 根据经纬度获取分站
// export function getSiteId(params) {
// 	return request("/api/site/getMemberPositionSite", "GET", params)
// }
// 根据经纬度获取分站
export function getSiteId(params) {
	console.log(params);
	return request("/api/shop/getSiteId", "GET", params)
}
// 周边商铺周边好物 
export function goodThingsAround(params) {
	return request("/api/goods/hotGoods", "GET", params)
}
// 首页今日推荐 
export function DayRecommend(params) {
	return request("/api/goods/indexGoods", "GET", params)
}
// 订单列表   
export function selectOrderListForMember(params) {
	return request("/api/order/selectOrderListForMember", "GET", params)
}
// //  根据频道id筛选获取二级分类
// export function getSecondaryLevelChannel(params) {
// 	return request("/api/goods/getGoodsByKategorieId", "GET", params)
// }
//  商品
export function shopListByChannelId(params) {
	return request("/api/goods/getGoodsByChannelId", "GET", params)
}
// 店铺详情
export function getShopInfo(params) {
	return request("/api/order/getShopInfo", "POST", params)
}
// 我的购物车
export function memberCartList(params) {
	return request("/api/shoppingCart/my", "POST", params)
}
// 我的购物车
export function clearCart(params) {
	return request("/api/shoppingCart/clean", "DELETE", params)
}
// 会员购物车-添加
export function addcard(params) {
	return request("/api/shoppingCart/operate", "POST", params)
}
// 获取用户的  地址列表
export function getMemberAddresses(params) {
	return request("/api/order/getMemberAddresses", "GET", params)
}
// 用户地址管理表-添加
export function addMemberAddress(params) {
	return request("/api/order/addMemberAddress", "POST", params)
}
// 用户地址管理表-编辑
export function editMemberAddress(params) {
	return request("/api/order/editMemberAddress", "PUT", params)
}
// 门店详情-菜单-商品详情
export function getGoodsInfo(params) {
	return request("/api/goods/getGoodsInfo", "GET", params)
}
// 门店详情 获取一部分
export function goodsOne(params) {
	return request("/api/goods/first", "GET", params)
}
// 门店详情
export function goods(params) {
	return request("/api/goods", "GET", params)
}
// 获取所有的可以用的    优惠活动
export function computeConformPromo(params) {
	return request("/api/shopPromo/computeConformPromo", "POST", params)
}
// 获取配送费 获取默认常用地址
export function getDeliveryAmount(params) {
	return request("/api/order/getDeliveryAmount", "POST", params)
}
// 获取自己的发布的信息列表
export function allYourSelfList(params) {
	return request("/api/information/allYourSelfList", "GET", params)
}
//商品下订单
export function OrderForOne(params) {
	return request("/api/order/OrderForOne", "POST", params)
}
//计算订单价格
export function calculatePrice(params) {
	return request("/api/order/getOrderOfPrice", "POST", params)
}
//课程订单 支付
export function payOrder(params) {
	return request("/api/cwOrder/payOrder", "POST", params)
}
//订单 支付
export function orderPay(params) {
	return request("/api/order/orderPay?orderId=" + params.orderId + '&payMoney=' + params.payMoney + '&payType=' +
		params.payType + '&type=' + params.type, "POST", params)
}
//订单 详情
export function selectOrderInfo(params) {
	return request("/api/order/selectOrderInfo", "GET", params)
}
//订单 取消订单-待付款
export function cancelOrder(params) {
	return request("/api/order/cancelOrder", "GET", params)
}
//订单 状态 变化
export function getOrderStatusInfo(params) {
	return request("/api/order/getOrderStatusInfo", "GET", params)
}
// 信息发布-下架
export function pullOffShelves(params) {
	return request("/api/information/pullOffShelves", "PUT", params)
}
// 信息发布-编辑
export function xinxiedit(params) {
	return request("/api/information/editAndSubmitReview", "PUT", params)
	// return request("/api/information/edit", "PUT", params)
}
//商品下订单
export function refundOrder(params) {
	return request("/api/order/refundOrder", "POST", params)
}
//积分兑换商品
export function Redemptionofpoints(params) {
	return request("/api/exchangeGoods/list", "GET", params)
}
//兑换订单
export function Redeemorders(params) {
	return request("/api/exchangeOrder/list", "GET", params)
}
// //我的积分
// export function Mypoints(params) {
// 	return request("/api/marketing/getPointByMemberId", "GET", params)
// }
//兑换订单商品
export function Exchangegoods(params) {
	return request("/api/exchangeOrder/placeOrder", "POST", params)
}
//兑换订单商品
export function generationOrderReport(params) {
	return request("/api/order/generationOrderReport/" + params.id, "GET", params)
}
//首页推荐商铺
export function indexShop(params) {
	return request("/api/shop/indexShop", "GET", params)
}
//所有店铺信息
export function allShop(params) {
	return request("/api/shop/allShop/110", "GET", params)
}
//我的全部店铺购物车
export function myAllShopCart(params) {
	return request("/api/shoppingCart/myAllShopCart/" + params, "POST", params)
}
//首页的新闻列表
export function helper(params) {
	return request("/api/news/helper", "GET", params)
}
//获取返利详情
export function getOrderRebate(params) {
	return request("/api/order/orderRebate/getOrderRebate", "GET", params)
}
//获取小程序推荐码
export function getWxCode(params) {
	return request("/api/invite/getWxCode", "GET", params)
}
//获取推荐信息
export function getInviteRecord(params) {
	return request("/api/invite/getInviteRecord", "GET", params)
}
// //获取推荐信息
// export function getInviteRecord(params) {
// 	return request("/api/invite/getInviteRecord", "GET", params)
// }
//获取分享次数
export function getIncrement(params) {
	return request("/api/invite/getIncrement/?memberId=" + params, "GET", )
}
//绑定分享人
export function bind(params) {
	return request("/api/invite/bind", "POST", params)
}
//分享次数增加
export function addIncrement(params) {
	return request("/api/invite/addIncrement/?memberId=" + params, "POST", )
}
//分享次数增加
export function page(params) {
	return request("/api/order/orderRebate/page", "GET", params)
}
//分享提现
export function addFinancialWithdraw(params) {
	return request("/api/order/orderRebate/addFinancialWithdraw", "POST", params)
}
//分享修改个人提现
export function updateById(params) {
	return request("/api/member/updateById", "POST", params)
}
//分享修改个人提现
export function get(params) {
	return request("/api/order/orderRebateConfig/get", "GET", params)
}
//分享修改个人提现
export function memberRecharge(params) {
	return request("/api/order/memberRecharge", "POST", params)
}
//分享修改个人提现
export function memberBalanceRecorPage(params) {
	return request("/api/order/orderRebate/memberBalanceRecorPage", "GET", params)
}
//分享积分列表
export function integralGoods(params) {
	return request("/api/goods/integralGoods", "GET", params)
}
export function getUserIntegral(params) {
	return request("/api/order/orderRebate/getUserIntegral", "GET", params)
}
//总裁直达
export function sendBoss(params) {
	return request("/api/boos/sendBoss", "POST", params)
}
//新闻分类
export function indexNewsKate(params) {
	return request("/api/news/indexNewsKate", "GET", params)
}
//新闻分类下的列表
export function ydhelper(params) {
	return request("/api/news/helper", "GET", params)
}
//新闻分类下的详情
export function usedManual(params) {
	return request("/api/news/usedManual", "GET", params)
}
//售前人员
export function beforeSaleMan(params) {
	return request("/api/absMan/beforeSaleMan", "GET", params)
}
//售后人员
export function afterSaleMan(params) {
	return request("/api/absMan/afterSaleMan", "GET", params)
}
//售后人员
export function applyVisit(params) {
	return request("/api/visit/applyVisit", "POST", params)
}
//售后人员
export function mixSearch(params) {
	return request("/api/goods/mixSearch", "GET", params)
}
//售后人员
export function groupGoods(params) {
	return request("/api/goods/groupGoods", "GET", params)
}
// 收益记录
export function myIncome(recode) {
	return request("/api/recommend/getMemberByRecCode/" + recode, "GET")
}
// 根据code 获取用户信息  获取不到  去注册
export function onlineInfo(params) {
	return request("/api/member/editInfo", "GET", params)
}
// 修改提现设置
export function modifyTakeInfo(params) {
	return request("/api/member/edit", "POST", params)
}
// 获取推荐人信息
export function getUserInfoByRecCode(params) {
	return request("/api/recommend/getMemberByRecCode/" + params.recCode, "GET", )
}
// 获取推荐人信息
export function bindRecommendShip(params) {
	return request("/api/recommend/bindRecommendShip/" + params.memberId + '/' + params.masterId, "PUT")
}
// 根据用户ID查询用户信息
export function memberInfo(params) {
	return request("/api/member/queryById", "GET", params)
}
//提现列表
export function incomeList(params) {
	return request("/api/kickbackIncome/incomeList", "GET", params)
}
//可提现金额
export function takeableIncome(params) {
	return request("/api/kickbackIncome/takeableIncome/" + params, "GET")
}
//聚宝盆数据
export function kickbackList(params) {
	return request("/api/kickback/kickbackList", "GET", params)
}
//聚宝盆下单
export function takeKickbackOrder(params) {
	return request("/api/kickback/takeKickbackOrder", "PUT", params)
}
//聚宝盆下单支付
export function kickbackOrderToPay(params) {
	return request("/api/kickback/kickbackOrderToPay", "POST", params)
}
//提现
export function kickbackMemberIncomeTake(params) {
	return request("/api/financial/add", "POST", params)
}
//提现收益记录
export function incomeTakeList(params) {
	return request("/api/financial/page", "GET", params)
}
//提现收益记录
export function orderList(params) {
	return request("/api/kickback/orderList", "GET", params)
}
//取消聚宝盆订单
export function kickbackOrderCancel(params) {
	return request("/api/kickback/kickbackOrderCancel", "POST", params)
}
//隐藏
export function disableStatus(params) {
	return request("/api/kickbackIncome/disableStatus", "GET", params)
}
//APP账号密码登录
export function appLogin(params) {
	return request("/api/member/login", "POST", params)
}
//支付宝支付
export function kickbackOrderToPayAli(params) {
	return request("/api/kickback/kickbackOrderToPayAli", "POST", params)
}
//支付宝支付
export function coursepage(params) {
	return request("/api/course/page", "GET", params)
}
//查询老师信息
export function getTeacherById(params) {
	return request("/api/catalogue/getTeacherById", "GET", params)
}
//商品课程收藏
export function addCollect(params) {
	return request("/api/collect/addCollect", "POST", params)
}
//商品课程目录
export function cataloguelist(params) {
	return request("/api/catalogue/list", "GET", params)
}
//根据课程id获取课程平均评分
export function getAvgScore(params) {
	return request("/api/comment/getAvgScore?courseId=" + params.courseId, "POST")
}
//根据课程id获取课程评分列表
export function getScore(params) {
	return request("/api/comment/getScore?courseId=" + params.courseId, "POST")
}
//兑换码兑换课程
export function createExchangeOrder(params) {
	return request("/api/cwOrder/createExchangeOrder", "POST", params)
}
//我的优惠券列表
export function getCouponPage(params) {
	return request("/api/coupon/getCouponPage", "GET", params)
}
//根据订单金额查询可用的优惠券列表
export function myCoupons(params) {
	return request("/api/coupon/myCoupons", "GET", params)
}
//积分查询，走缓存
export function getPointByMemberId(params) {
	return request("/api/marketing/getPointByMemberId", "GET", params)
}
//分类一级查询
export function getGoodsCategory(params) {
	return request("/api/category/getGoodsCategory", "GET", params)
}
//分类二级查询
// export function getSecondaryLevelChannel(params) {
// 	return request("/api/category/getGoodsCategory", "GET", params)
// }
//  根据频道id筛选获取二级分类
export function getSecondaryLevelChannel(params) {
	return request("/api/goods/getGoodsByKategorieId", "GET", params)
}
//  课程学习
export function orderPage(params) {
	return request("/api/cwOrder/orderPage", "GET", params)
}
//  我的收藏列表
export function getCollectPage(params) {
	return request("/api/collect/getCollectPage", "GET", params)
}
//  判断商品是否是收藏商品
export function isCollect(params) {
	return request("/api/collect/isCollect", "GET", params)
}
// / 收益列表
export function balanceRecord(params) {
	return request("/api/balanceRecord/page", "GET", params)
}
// 获取本周签到记录
export function getSignForWeek(params) {
	return request("/api/sign/getSignForWeek", "GET", params)
}
// 判断今天是否签到
export function isSign(params) {
	return request("/api/sign/isSign", "GET", params)
}
// app签到接口
export function memberSign(params) {
	return request("/api/sign/memberSign", "GET", params)
}
// 未读消息数量
export function getCount(params) {
	return request("/api/message/getCount", "GET", params)
}
// 消息列表
export function messagepage(params) {
	return request("/api/message/page", "GET", params)
}
// 变成已读
export function updateStatus(params) {
	return request("/api/message/updateStatus", "GET", params)
}
// 推荐中心
export function myRecommendCode(params) {
	return request("/api/recommend/getQRCode", "GET", params)
}
// 课程详情
export function getById(params) {
	return request("/api/course/getById", "GET", params)
}
// 我推荐的人
export function myRecommend(params) {
	return request("/api/recommend/myRecommend/" + params.memberId, "GET")
}
// 创建课程订单
export function createOrder(params) {
	return request("/api/cwOrder/createOrder", "POST", params)
}
// 获取积分抵扣比例
export function getPointRatio(params) {
	return request("/api/cwOrder/getPointRatio", "POST", params)
}
// 添加观看记录
export function cwChapterRecord(params) {
	return request("/api/cwChapterRecord/add", "POST", params)
}
// 新增课程评分
export function commentadd(params) {
	return request("/api/comment/add", "POST", params)
}
// 新增课程评分
export function getByType(params) {
	return request("/api/protocol/getByType", "GET", params)
}
// 查询用户是否是vip
export function memberVipStatus(params) {
	return request("/api/member/memberVipStatus", "GET", params)
}
// 免费下单
export function free(params) {
	return request("/api/order/notify/free", "GET", params)
}
export function freeGoods(params) {
	return request("/api/order/notify/freeGoods", "GET", params)
}
//   开关接口
export function functions(params) {
	return request("/api/order/notify/function", "GET", params)
}
// 